package com.yuch.controller;


import com.yuch.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/message")
public class InController {
    @Autowired
    private OrderService orderService;
    @PostMapping("/{id}")
    public String test(@PathVariable String id){
        String order = orderService.order(id);
        return order;
    }


}
